// 组件相关API
import request from '@/utils/request'

// ======================================== 组件分类相关API ========================================

// 获取组件分类列表
export const FlowAssemblyClassifyList = (data) => {
  return request({
    url: '/api/Assembly/FlowAssemblyClassifyList',
    method: 'post',
    data
  })
}

// 获取组件分类详情
export const FlowAssemblyClassifyDetail = (data) => {
  return request({
    url: '/api/Assembly/FlowAssemblyClassifyDetail',
    method: 'post',
    data
  })
}

// 提交组件分类信息
export const SubmitFlowAssemblyClassify = (data) => {
  return request({
    url: '/api/Assembly/SubmitFlowAssemblyClassify',
    method: 'post',
    data
  })
}

// 批量删除组件分类信息
export const DelFlowAssemblyClassify = (data) => {
  return request({
    url: "/api/Assembly/DelFlowAssemblyClassify",
    method: 'post',
    data
  })
}

// 更新组件分类信息状态
export const UpdateFlowAssemblyClassifyStstus = (data) => {
  return request({
    url: "/api/Assembly/UpdateFlowAssemblyClassifyStstus",
    method: 'post',
    data
  })
}

// 更新组件分类信息顺序
export const UpdateFlowAssemblyClassifySort = (data) => {
  return request({
    url: "/api/Assembly/UpdateFlowAssemblyClassifySort",
    method: 'post',
    data
  })
}

// ======================================== 组件配置相关API ========================================

// 获取组件配置列表
export const FlowAssemblyConfigList = (data) => {
  return request({
    url: '/api/Assembly/FlowAssemblyConfigList',
    method: 'post',
    data
  })
}

// 获取组件配置详情
export const FlowAssemblyConfigDetail = (data) => {
  return request({
    url: '/api/Assembly/FlowAssemblyConfigDetail',
    method: 'post',
    data
  })
}

// 提交组件配置信息
export const SubmitFlowAssemblyConfig = (data) => {
  return request({
    url: '/api/Assembly/SubmitFlowAssemblyConfig',
    method: 'post',
    data
  })
}

// 批量删除组件配置信息
export const DelFlowAssemblyConfig = (data) => {
  return request({
    url: "/api/Assembly/DelFlowAssemblyConfig",
    method: 'post',
    data
  })
}

// 更新组件配置信息状态
export const UpdateFlowAssemblyConfigStstus = (data) => {
  return request({
    url: "/api/Assembly/UpdateFlowAssemblyConfigStstus",
    method: 'post',
    data
  })
}

// 更新组件配置信息顺序
export const UpdateFlowAssemblyConfigSort = (data) => {
  return request({
    url: "/api/Assembly/UpdateFlowAssemblyConfigSort",
    method: 'post',
    data
  })
}

// ======================================== 组件属性配置相关API ========================================

// 获取组件属性配置列表
export const FlowAssemblyConfigAttributeList = (data) => {
  return request({
    url: '/api/Assembly/FlowAssemblyConfigAttributeList',
    method: 'post',
    data
  })
}

// 获取组件属性配置详情
export const FlowAssemblyConfigAttributeDetail = (data) => {
  return request({
    url: '/api/Assembly/FlowAssemblyConfigAttributeDetail',
    method: 'post',
    data
  })
}

// 提交组件属性配置信息
export const SubmitFlowAssemblyConfigAttribute = (data) => {
  return request({
    url: '/api/Assembly/SubmitFlowAssemblyConfigAttribute',
    method: 'post',
    data
  })
}

// 批量删除组件属性配置信息
export const DelFlowAssemblyConfigAttribute = (data) => {
  return request({
    url: "/api/Assembly/DelFlowAssemblyConfigAttribute",
    method: 'post',
    data
  })
}

// 更新组件配置信息状态
export const UpdateFlowAssemblyConfigAttributeStstus = (data) => {
  return request({
    url: "/api/Assembly/UpdateFlowAssemblyConfigAttributeStstus",
    method: 'post',
    data
  })
}

// 更新组件属性配置信息顺序
export const UpdateFlowAssemblyConfigAttributeSort = (data) => {
  return request({
    url: "/api/Assembly/UpdateFlowAssemblyConfigAttributeSort",
    method: 'post',
    data
  })
}

// ======================================== 组件模板关API ========================================

// 获取可用组件数据
export const FlowAssemblyData = (data) => {
  return request({
    url: "/api/Assembly/FlowAssemblyData",
    method: 'post',
    data
  })
}
